package Day21.面向对象测试;

import java.util.Arrays;

public class Demo2 {

    public void test(Integer num,int[] nums){
        num = 100;

        nums[1] = 1000;
        System.out.println("方法内部num的值:"+num);
    }

    public static void main(String[] args) {
        Demo2 demo = new Demo2();

        Integer num = new Integer(10);

        int[] nums = {20,30,40,50};
        demo.test(num,nums);
        System.out.println("方法外部num的值:"+num);
        System.out.println(Arrays.toString(nums));
    }
}
